package com.dongqi.deviceData.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备数据-护拦板
 *
 * @TableName device_guardrail_board
 */
@TableName("device_guardrail_board")
public class DeviceGuardrailBoardEntity implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * 设备编号
     */
    private String deviceNo;

    /**
     * 护拦板设备编号
     */
    private String boardNo;

    /**
     * 护拦板设备型号
     */
    private String equipModel;

    /**
     * 设备状态
     */
    private String status;

    /**
     * 机械臂状态
     */
    private String armStatus;

    /**
     * 机械臂行程
     */
    private String armStroke;

    /**
     * 机械臂角度
     */
    private String armAngle;

    /**
     * 机械臂工况
     */
    private String armWorkState;

    /**
     * 吸盘状态
     */
    private String suckerState;

    /**
     * 翻转架
     */
    private String flipFrame;

    /**
     * 高度缸
     */
    private String heightCylinder;

    /**
     * 锁定缸
     */
    private String lockCylinder;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 备用1
     */
    private String bak1;

    /**
     * 备用2
     */
    private String bak2;

    /**
     * 备用3
     */
    private String bak3;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 时间戳
     */
    private String timestp;

    public void setTimestp(String timestp) {
        this.timestp = timestp;
    }

    public String getTimestp() {
        return timestp;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Long getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 设备编号
     */
    public String getDeviceNo() {
        return deviceNo;
    }

    /**
     * 设备编号
     */
    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    /**
     * 护拦板设备编号
     */
    public String getBoardNo() {
        return boardNo;
    }

    /**
     * 护拦板设备编号
     */
    public void setBoardNo(String boardNo) {
        this.boardNo = boardNo;
    }

    /**
     * 护拦板设备型号
     */
    public String getEquipModel() {
        return equipModel;
    }

    /**
     * 护拦板设备型号
     */
    public void setEquipModel(String equipModel) {
        this.equipModel = equipModel;
    }

    /**
     * 设备状态
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设备状态
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 机械臂状态
     */
    public String getArmStatus() {
        return armStatus;
    }

    /**
     * 机械臂状态
     */
    public void setArmStatus(String armStatus) {
        this.armStatus = armStatus;
    }

    /**
     * 机械臂行程
     */
    public String getArmStroke() {
        return armStroke;
    }

    /**
     * 机械臂行程
     */
    public void setArmStroke(String armStroke) {
        this.armStroke = armStroke;
    }

    /**
     * 机械臂角度
     */
    public String getArmAngle() {
        return armAngle;
    }

    /**
     * 机械臂角度
     */
    public void setArmAngle(String armAngle) {
        this.armAngle = armAngle;
    }

    /**
     * 机械臂工况
     */
    public String getArmWorkState() {
        return armWorkState;
    }

    /**
     * 机械臂工况
     */
    public void setArmWorkState(String armWorkState) {
        this.armWorkState = armWorkState;
    }

    /**
     * 吸盘状态
     */
    public String getSuckerState() {
        return suckerState;
    }

    /**
     * 吸盘状态
     */
    public void setSuckerState(String suckerState) {
        this.suckerState = suckerState;
    }

    /**
     * 翻转架
     */
    public String getFlipFrame() {
        return flipFrame;
    }

    /**
     * 翻转架
     */
    public void setFlipFrame(String flipFrame) {
        this.flipFrame = flipFrame;
    }

    /**
     * 高度缸
     */
    public String getHeightCylinder() {
        return heightCylinder;
    }

    /**
     * 高度缸
     */
    public void setHeightCylinder(String heightCylinder) {
        this.heightCylinder = heightCylinder;
    }

    /**
     * 锁定缸
     */
    public String getLockCylinder() {
        return lockCylinder;
    }

    /**
     * 锁定缸
     */
    public void setLockCylinder(String lockCylinder) {
        this.lockCylinder = lockCylinder;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 修改时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 备用1
     */
    public String getBak1() {
        return bak1;
    }

    /**
     * 备用1
     */
    public void setBak1(String bak1) {
        this.bak1 = bak1;
    }

    /**
     * 备用2
     */
    public String getBak2() {
        return bak2;
    }

    /**
     * 备用2
     */
    public void setBak2(String bak2) {
        this.bak2 = bak2;
    }

    /**
     * 备用3
     */
    public String getBak3() {
        return bak3;
    }

    /**
     * 备用3
     */
    public void setBak3(String bak3) {
        this.bak3 = bak3;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DeviceGuardrailBoardEntity other = (DeviceGuardrailBoardEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getDeviceNo() == null ? other.getDeviceNo() == null : this.getDeviceNo().equals(other.getDeviceNo()))
                && (this.getBoardNo() == null ? other.getBoardNo() == null : this.getBoardNo().equals(other.getBoardNo()))
                && (this.getEquipModel() == null ? other.getEquipModel() == null : this.getEquipModel().equals(other.getEquipModel()))
                && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
                && (this.getArmStatus() == null ? other.getArmStatus() == null : this.getArmStatus().equals(other.getArmStatus()))
                && (this.getArmStroke() == null ? other.getArmStroke() == null : this.getArmStroke().equals(other.getArmStroke()))
                && (this.getArmAngle() == null ? other.getArmAngle() == null : this.getArmAngle().equals(other.getArmAngle()))
                && (this.getArmWorkState() == null ? other.getArmWorkState() == null : this.getArmWorkState().equals(other.getArmWorkState()))
                && (this.getSuckerState() == null ? other.getSuckerState() == null : this.getSuckerState().equals(other.getSuckerState()))
                && (this.getFlipFrame() == null ? other.getFlipFrame() == null : this.getFlipFrame().equals(other.getFlipFrame()))
                && (this.getHeightCylinder() == null ? other.getHeightCylinder() == null : this.getHeightCylinder().equals(other.getHeightCylinder()))
                && (this.getLockCylinder() == null ? other.getLockCylinder() == null : this.getLockCylinder().equals(other.getLockCylinder()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
                && (this.getBak1() == null ? other.getBak1() == null : this.getBak1().equals(other.getBak1()))
                && (this.getBak2() == null ? other.getBak2() == null : this.getBak2().equals(other.getBak2()))
                && (this.getBak3() == null ? other.getBak3() == null : this.getBak3().equals(other.getBak3()))
                && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
                && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
                && (this.getTimestp() == null ? other.getTimestp() == null : this.getTimestp().equals(other.getTimestp()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeviceNo() == null) ? 0 : getDeviceNo().hashCode());
        result = prime * result + ((getBoardNo() == null) ? 0 : getBoardNo().hashCode());
        result = prime * result + ((getEquipModel() == null) ? 0 : getEquipModel().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getArmStatus() == null) ? 0 : getArmStatus().hashCode());
        result = prime * result + ((getArmStroke() == null) ? 0 : getArmStroke().hashCode());
        result = prime * result + ((getArmAngle() == null) ? 0 : getArmAngle().hashCode());
        result = prime * result + ((getArmWorkState() == null) ? 0 : getArmWorkState().hashCode());
        result = prime * result + ((getSuckerState() == null) ? 0 : getSuckerState().hashCode());
        result = prime * result + ((getFlipFrame() == null) ? 0 : getFlipFrame().hashCode());
        result = prime * result + ((getHeightCylinder() == null) ? 0 : getHeightCylinder().hashCode());
        result = prime * result + ((getLockCylinder() == null) ? 0 : getLockCylinder().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getBak1() == null) ? 0 : getBak1().hashCode());
        result = prime * result + ((getBak2() == null) ? 0 : getBak2().hashCode());
        result = prime * result + ((getBak3() == null) ? 0 : getBak3().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getTimestp() == null) ? 0 : getTimestp().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deviceNo=").append(deviceNo);
        sb.append(", boardNo=").append(boardNo);
        sb.append(", equipModel=").append(equipModel);
        sb.append(", status=").append(status);
        sb.append(", armStatus=").append(armStatus);
        sb.append(", armStroke=").append(armStroke);
        sb.append(", armAngle=").append(armAngle);
        sb.append(", armWorkState=").append(armWorkState);
        sb.append(", suckerState=").append(suckerState);
        sb.append(", flipFrame=").append(flipFrame);
        sb.append(", heightCylinder=").append(heightCylinder);
        sb.append(", lockCylinder=").append(lockCylinder);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", bak1=").append(bak1);
        sb.append(", bak2=").append(bak2);
        sb.append(", bak3=").append(bak3);
        sb.append(", longitude=").append(longitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", timestp=").append(timestp);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}